﻿namespace FluentDBC.Testing.Stubs
{
    public class CustomerService : ICustomerService
    {
        public void CalculateTax(Customer c, ITaxStrategy taxStrategy)
        {
            taxStrategy.Calculate(c);
        }
    }

    public class DefaultTaxStrategy : ITaxStrategy
    {
        public void Calculate(Customer c)
        {
            if (c.Gender == false)
            {
                c.Tax = c.Tax + (float)1.0;
            }
            else
            {
                c.Tax = c.Tax + (float)1.5;
            }
        }
    }
}